import Vue from 'vue'
import App from './App.vue'
// 导入路由
import router from '@/router/index.js'
// 导入 Vuex
import store from '@/store/store.js'
import './assets/css/style.css'
import './assets/font/iconfont.css'

import toast from './components/toast'
import { Tabbar, TabbarItem, Swipe, SwipeItem, Icon, Dialog, Notify, SwipeCell, CellGroup } from 'vant'
import 'vant/lib/index.css'
// 导入 MintUI
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import '@/lib/mui/css/mui.css'
import '@/lib/mui/css/icons-extra.css'

Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(Icon)
Vue.use(Dialog)
Vue.use(Notify)
Vue.use(SwipeCell)
Vue.use(CellGroup)
Vue.use(MintUI)
Vue.use(toast)
// Vue.use(axios)

Vue.config.productionTip = false
// 响应时间
// axios.defaults.timeout = 3000
// // 这里的 http://localhost:8080 为本地接口
// axios.defaults.baseURL = 'http://localhost:8080'
// Object.defineProperty(Vue.prototype, '$http', {
//   value: axios
// })

new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
